package com.onlyxiahui.extend.query.hibernate.syntax.annotation;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Description <br>
 * Date 2020-05-26 11:37:01<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */
@Documented
@Retention(RUNTIME)
@Target({ TYPE })
@Repeatable(OrderBys.class)
public @interface OrderBy {

	/**
	 * 
	 * 排序字段<br>
	 * Date 2020-06-03 09:20:00<br>
	 * 
	 * @return
	 * @since 1.0.0
	 */
	String[] value() default {};

	/**
	 * 
	 * 升序、降序<br>
	 * Date 2020-06-03 09:20:15<br>
	 * 
	 * @return
	 * @since 1.0.0
	 */
	String sort() default "";
}
